"""
URL configuration for supervisor app.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path, include, re_path
from supervisor import views

app_name = "supervisor"
urlpatterns = [
    # 管理员注册
    re_path(r'^supervisor/register/$', views.RegisterView.as_view(), name='register'),
    re_path(r'^supervisor/register/check_number/$', views.check_number, name='register_check_number'),

    # 管理员登录
    re_path(r'^supervisor/login/$', views.LoginView.as_view(), name='login'),
    re_path(r'^supervisor/home/$', views.home, name='home'),

    # 验证码
    re_path(r'^supervisor/generate_code/$', views.generate_code, name='generate_code'),
    re_path(r'^supervisor/verify_code/$', views.verify_code, name='verify_code'),

    # 用户管理
    re_path(r'^supervisor/manage_student/$', views.ManageStudent.as_view(), name='manage_student'),
    re_path(r'^supervisor/manage_orgnazation/$', views.ManageOrganization.as_view(), name='manage_organization'),

    # 就业信息管理
    re_path(r'^supervisor/manage_job/$', views.ManageJob.as_view(), name='manage_job'),

    # 面试预约管理
    re_path(r'^supervisor/manage_interview/$', views.ManageInterview.as_view(), name='manage_interview'),

    # 实习通知管理
    re_path(r'^supervisor/manage_internship/$', views.ManageInternship.as_view(), name='manage_internship'),

]